package com.pyz.lockdemo;

import java.util.HashMap;

/**
 * @author yinzhenpu
 * @date 2022/6/8 17:37:41
 * @description 请描述类功能
 */
public class HashMapDemo {
    public static void main(String[] args) {
        HashMap<WorkflowKey, Integer> map = new HashMap<>(2, 0.99f);
        for (int i = 0; i < 100; i++) {
            WorkflowKey workflow = new WorkflowKey();
            map.put(workflow, i);
        }
        System.out.println(map.size());
    }


    static class WorkflowKey {

        @Override
        public int hashCode() {
            return 1;
        }
    }
}
